/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.ufrn.cerescaico.sepe.dao;

import br.ufrn.cerescaico.sepe.Sepe;
import br.ufrn.cerescaico.sepe.beans.Email;
import br.ufrn.cerescaico.sepe.dao.util.DataAccessLayerException;
import java.util.List;

/**
 * @author Taciano Morais Silva
 * @version 10/06/2010, 12h11m
 * @since 10/06/2010, 12h00m
 */
public class EmailDao extends AbstractDao<Email> implements Dao<Email> {

    public EmailDao(Sepe sepe) throws DataAccessLayerException {
        super(sepe);
    }

    /**
     *
     * @throws DataAccessLayerException
     */
    public EmailDao() throws DataAccessLayerException {
        super();
    }

    /**
     * Insert a new Event into the database.
     * @param event
     */
    @Override
    public void create(Email email) throws DataAccessLayerException {
        super.saveOrUpdate(email);
    }

    @Override
    public void update(Email bean) throws DataAccessLayerException {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public void delete(Integer id) throws DataAccessLayerException {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    /**
     * Delete a detached Event from the database.
     * @param event
     */
    @Override
    public void delete(Email email) throws DataAccessLayerException {
        super.delete(email);
    }

    @Override
    public Email find(Integer id) throws DataAccessLayerException {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public List<Email> findAll() throws DataAccessLayerException {
        throw new UnsupportedOperationException("Not supported yet.");
    }
}
